package com.umgsai.thread.thread39;

public class ThreadA extends Thread { 
	private ThreadB b;
	public ThreadA(ThreadB b) {
		super();
		this.b = b;
	}
	@Override
	public void run() {
		try {
			synchronized (b) {
				b.start();
				//Thread.sleep(6000);////不释放b对象锁
				b.join();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
